package top.canyue.word_range_service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.canyue.word_range.pojo.dto.ConditionDto;
import top.canyue.word_range.pojo.po.Condition;
import top.canyue.word_range.pojo.vo.ConditionVo;
import top.canyue.word_range.result.Result;

import java.util.List;

public interface ConditionService extends IService<Condition> {
    Result<Condition> addCondition(ConditionDto conditionDto);

    Result<Condition> updateCondition(ConditionDto conditionDto);

    Result<Condition> deleteCondition(String conditionId);

    Result<Condition> associatedCondition(String conditionId, String eventId);

    Result<List<ConditionVo>> getConditionListByEvent(String eventId);
}
